x86: port the basic alternative mechanism from Linux to Xen
authorFeng Wu <feng.wu@intel.com>
Tue, 3 Jun 2014 09:31:21 +0000 (11:31 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 3 Jun 2014 09:54:23 +0000 (11:54 +0200)
commit5542ac7f908c2819fcedb06ee9dc24af94d89566
tree915a313f8e5899ff52721ab1f5bfc44e6cce027c
parent238faa9daf9f3dff782128302c5fd923e49f2143
x86: port the basic alternative mechanism from Linux to Xen

This patch ports the basic alternative mechanism from Linux to Xen.
With this mechanism, we can patch code based on the CPU features.

Signed-off-by: Feng Wu <feng.wu@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/Makefile
xen/arch/x86/alternative.c [new file with mode: 0644]
xen/arch/x86/setup.c
xen/arch/x86/xen.lds.S
xen/include/asm-x86/alternative.h [new file with mode: 0644]